<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.zmht.specedu.vo.Teachbook,com.zmht.specedu.vo.Soundstudy,java.util.*,com.zmht.specedu.rescue.web.form.TeachBookForm"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	/**
	 * @author 谭湘元
	 * @since 2009/04/23
	 */
	 TeachBookForm bookForm = (TeachBookForm)request.getAttribute("teachBookForm");
 %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb18030" />
<title>教材浏览</title>
<fmt:setBundle basename="PathResource" scope="session" />
<link href="<%=request.getContextPath() %>/<fmt:message key='StylePath' />style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath() %>/<fmt:message key='jquery' />ajaxHelper.js"></script>
<script type="text/javascript">
function showFile(fileType,fileSubffix){
	var url ="teachBook.do?method=dowloadTeachBookFile&bookID=<c:out value="${teachBookForm.bookId }" />&fileType="+fileType+"&fileSubffix="+fileSubffix;
	openCommonWindow(url,500,500,true,'文件查看');
}
</script>
</head>

<body  class="openDialog">
<form action="teachBook.do?method=previewBook" method="post" enctype="multipart/form-data" name="teachBookForm" id="form1">
	<input name="bookId" type="hidden" value="<c:out value="${teachBook.bookId }"/>"/>

  <table cellspacing="0" cellpadding="0" width="99%" align="center" border="0">
	<tbody>
	<tr>
        <td width="7"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_01.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_05.gif"><table cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
              <tr>
                <td width="30"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_02.gif" width="30" /></td>
                <td align="left" width="200" background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_03.gif">&nbsp;<strong>教 材 浏 览</strong></td>
                <td width="59"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_04.gif" width="59" /></td>
                <td>&nbsp;</td>
              </tr>
            </tbody>
        </table></td>
        <td width="8"><img height="38" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_06.gif" width="8" /></td>
    </tr>
    <tr>
		<td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_07.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
        <td bgcolor="#f7fbff">
      <table cellspacing="0" bordercolordark="#ccccff" cellpadding="0" width="100%" bordercolorlight="#ffffff" border="0">
	  	<tbody>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">教材名称：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF"><c:out value="${teachBook.tbookName }" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">目标类别：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">
                  <c:out value="${teachBook.finalType }" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">教材类别：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">
                  <c:forEach items="${teachBookTypes}" var="typeVar">
							<c:if test="${typeVar.id == teachBook.tbookType}"><c:out value="${typeVar.name }" /></c:if>
						</c:forEach></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">教材等级：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF"><c:out value="${teachBook.tbookClass }" /></td>
                </tr>
            </table></td>
          </tr>
          <!-- 
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">教师姓名：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">作 者：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;</td>
                </tr>
            </table></td>
          </tr>
           -->
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">时 间：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF"><c:out value="${teachBook.time }" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">评分文本：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF"> <c:out value="${teachBook.scoreText }" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">备 注：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF"><c:out value="${teachBook.remark }" /></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">汉字文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasChineseFile}"><a href="javascript:showFile('chineseFile','<c:out value="${ContextTypeBuilder.jpgSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">口型文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasMouthFile}"><a href="javascript:showFile('mouthFile','<c:out value="${ContextTypeBuilder.aviSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">拼音文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasPinyinFile}"><a href="javascript:showFile('pinyinFile','<c:out value="${ContextTypeBuilder.jpgSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">声音文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasSoundFile}"><a href="javascript:showFile('soundFile','<c:out value="${ContextTypeBuilder.wavSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">手势文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasSignFile}"><a href="javascript:showFile('signFile','<c:out value="${ContextTypeBuilder.aviSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">图片文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasPictureFile}"><a href="javascript:showFile('pictureFile','<c:out value="${ContextTypeBuilder.jpgSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#a4c9ec" class="fontbot">
                <tr>
                  <td width="25%" height="20" align="right" valign="middle" bgcolor="#e6f0f8">字母文件：</td>
                  <td height="20" align="left" valign="middle" bgcolor="#FFFFFF">&nbsp;<c:if test="${teachBookForm.hasZimuFile}"><a href="javascript:showFile('zimuFile','<c:out value="${ContextTypeBuilder.jpgSubffix }" />');">查看</a></c:if></td>
                </tr>
            </table></td>
          </tr>
			</tbody>
        </table>
          <table cellspacing="1" cellpadding="0" width="100%" bgcolor="#ffffff" border="0">
           <tbody>
                <tr>
                  <td valign="middle" bgcolor="#e6f0f8"><table cellspacing="0" cellpadding="3" width="100%" border="0">
                      <tbody>
			            <tr>
              <td height="20" align="center"><a href="javascript:parent.window.close();" onfocus="this.blur()"><img src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />jz_img/exit.gif" width="53" height="22" border="0" /></a></td>
            </tr>
       				 </tbody>
                  </table></td>
                </tr>
           </tbody>
        </table>
		</td>
		<td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_09.gif"><img height="1" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />spacer.gif" width="1" /></td>
    </tr>
    <tr>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_10.gif" width="7" /></td>
        <td background="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_11.gif">&nbsp;</td>
        <td><img height="22" alt="" src="<%=request.getContextPath() %>/<fmt:message key='CommonImagePath' />table_1_12.gif" width="8" /></td>
      </tr>
	</tbody>
  </table>
</form>
</body>
</html>
 